import Layout from '@/layouts'

/**
 * 异步:动态路由  营销管理
 */
const ActivityRoute = {
  path: '/activity',
  component: Layout,
  name: '营销管理',
  icon: 'activity',
  meta: { 
		title: '营销管理' ,
		icon: 'activity'
  },
  authCode: 'activity',
  children: [{
	path: 'prefecture',
	icon: 'prefecture',
	component: () => import('@/views/modules/activity/prefecture/list'),
	name: '专区管理',
	meta: { 
		title: '专区管理',
		icon: 'prefecture'
	},
	authCode: 'activity:prefecture',
	children:[
	{
		path: 'view',
		component: () => import('@/views/modules/activity/prefecture/view'),
		name: '查看详情',
		meta: {
			title: '查看专区详情',
		},
		hidden: true
	},{
		path: 'add',
		component: () => import('@/views/modules/activity/prefecture/add'),
		name: '新增专区',
		meta: {
			title: '新增专区',
		},
		hidden: true
	},{
		path: 'edit',
		component: () => import('@/views/modules/activity/prefecture/edit'),
		name: '修改专区',
		meta: {
			title: '修改专区',
		},
		hidden: true
	},{
		path: 'maintain',
		component: () => import('@/views/modules/activity/prefecture/goods/index'),
		name: '维护商品',
		meta: {
			title: '维护商品',
		},
		hidden: true,
		children:[{
			path: 'add',
			component: () => import('@/views/modules/activity/prefecture/goods/add'),
			name: '添加商品',
			meta: {
				title: '添加商品',
			},
			hidden: true,
		}]
	}]
	},{
	path: 'seckill',
	icon: 'seckill',
	component: () => import('@/views/modules/activity/seckill/list'),
	name: '秒杀管理',
	meta: { 
		title: '秒杀管理',
		icon: 'seckill'
	},
	authCode: 'activity:seckill',
	children:[
	{
		path: 'view',
		component: () => import('@/views/modules/activity/seckill/view'),
		name: '查看详情',
		meta: {
			title: '查看秒杀详情',
		},
		hidden: true
	},{
		path: 'add',
		component: () => import('@/views/modules/activity/seckill/add'),
		name: '新增秒杀活动',
		meta: {
			title: '新增秒杀活动',
		},
		hidden: true
	},{
		path: 'edit',
		component: () => import('@/views/modules/activity/seckill/edit'),
		name: '修改秒杀活动',
		meta: {
			title: '修改秒杀活动',
		},
		hidden: true
	},{
		path: 'scene',
		component: () => import('@/views/modules/activity/seckill/scene/index'),
		name: '秒杀时间段',
		meta: {
			title: '秒杀时间段',
		},
		hidden: true,
		children:[
			{
				path: 'add',
				component: () => import('@/views/modules/activity/seckill/scene/add'),
				name: '添加秒杀时间区间',
				meta: {
					title: '添加秒杀时间区间',
				},
				hidden: true,
			},
			{
				path: 'add',
				component: () => import('@/views/modules/activity/seckill/scene/edit'),
				name: '修改秒杀时间区间',
				meta: {
					title: '修改秒杀时间区间',
				},
				hidden: true,
			},
		]
	},
	{
		path: 'time',
		component: () => import('@/views/modules/activity/seckill/time/index'),
		name: '活动时间段',
		meta: {
			title: '活动时间段',
		},
		hidden: true,
		children:[
			{
				path: 'goods',
				component: () => import('@/views/modules/activity/seckill/goods/list'),
				name: '秒杀商品列表',
				meta: {
					title: '秒杀商品列表',
				},
				hidden: true,
				children:[
					{
						path: 'add',
						component: () => import('@/views/modules/activity/seckill/goods/add'),
						name: '添加商品',
						meta: {
							title: '添加商品',
						},
						hidden: true,
					},
					{
						path: 'edit',
						component: () => import('@/views/modules/activity/seckill/goods/edit'),
						name: '修改商品',
						meta: {
							title: '修改商品',
						},
						hidden: true,
					}
				]
			}
		]
	}]
	},
	{
	path: 'advert',
	icon: 'advert',
	component: () => import('@/views/modules/activity/advert/list'),
	name: '广告管理',
	meta: { 
		title: '广告管理',
		icon: 'advert'
	},
	authCode: 'activity:advert',
	children:[
		{
			path: 'add',
			component: () => import('@/views/modules/activity/advert/add'),
			name: '新增广告',
			meta: {
				title: '新增广告',
			},
			hidden: true,
		},
		{
			path: 'edit',
			component: () => import('@/views/modules/activity/advert/edit'),
			name: '修改广告',
			meta: {
				title: '修改广告',
			},
			hidden: true,
		},
		{
			path: 'view',
			component: () => import('@/views/modules/activity/advert/view'),
			name: '查看广告',
			meta: {
				title: '查看广告',
			},
			hidden: true,
		},
	]
	},
	{
	path: 'coupon',
	icon: 'coupon',
	component: () => import('@/views/modules/activity/coupon/list'),
	name: '优惠券管理',
	meta: { 
		title: '优惠券管理',
		icon: 'coupon'
	},
	authCode: 'activity:coupon',
	children:[
	{
		path: 'view',
		component: () => import('@/views/modules/activity/coupon/view'),
		name: '查看详情',
		meta: {
			title: '查看意见反馈详情',
		},
		hidden: true
	},{
		path: 'edit',
		component: () => import('@/views/modules/activity/coupon/edit'),
		name: '修改优惠券模版',
		meta: {
			title: '修改优惠券模版',
		},
		hidden: true
	},{
		path: 'add',
		component: () => import('@/views/modules/activity/coupon/add'),
		name: '新增优惠券模版',
		meta: {
			title: '新增优惠券模版',
		},
		hidden: true
	},{
		path: 'receive',
		component: () => import('@/views/modules/activity/coupon/receive/receive'),
		name: '查看领取记录',
		meta: {
			title: '查看领取记录',
		},
		hidden: true
	}]
	},
	{
	path: 'assemble',
	icon: 'assemble',
	component: () => import('@/views/modules/platform/region/list'),
	name: '拼团管理',
	meta: { 
		title: '拼团管理',
		icon: 'assemble'
	},
	authCode: 'activity:assemble',
	}
  ]
}
export default ActivityRoute
